//文章页左侧背景图自适应
function leftMenuAutoHeight(){
	var $body = $('.tw-article-content');
	var _height = $body[0].clientHeight;
	var $left = $('.tw-leftmenu');
	$left.css({height:_height+'px','max-height':_height+'px'});
}
//字体大小
function fontChange(dom, fs, obj){
	obj.addClass('active').siblings('a').removeClass();
	$(dom + ' *').css( "font-size", fs + 'px' );
	leftMenuAutoHeight();
}
//关闭窗口
function windowClose(){
	if ( confirm( "您确定要关闭吗？" ) ){
		window.opener = null;
		window.open('', '_self');
		window.close();
	} else {
		return;
	}
}
//左侧多级菜单
$(function(){
	//二级
	jQuery("#JQ_leftMenu").slide({
		type:"menu",
		titCell:".tw-menu-first >li",
		targetCell:".tw-menu-second",
		effect:"slideDown",
		delayTime:0,
		triggerTime:0,
		returnDefault:false,
		trigger:'click'
	});
	//三级
	jQuery(".tw-menu-first").slide({
		type:"menu",
		titCell:".tw-menu-second >li",
		targetCell:".tw-menu-third",
		effect:"slideDown",
		delayTime:0,
		triggerTime:0,
		returnDefault:false,
		trigger:'click',
		defaultPlay:false
	});
	//四级
	jQuery(".tw-menu-second").slide({
		type:"menu",
		titCell:".tw-menu-third >li",
		targetCell:".tw-menu-fourth",
		effect:"slideDown",
		delayTime:0,
		triggerTime:0,
		returnDefault:false,
		trigger:'click',
		defaultPlay:false
	});
})